package com.newretail.springboot.constant;

import com.newretail.springboot.result.ErrorInfoInterface;

/**
 * @author:gaoxu;
 * @Email:gaoxu@benlai.com
 * @DATE:2018-01-04
 * @version:ver1.0.0
 * @Description: Created by gaoxu on 2018-01-04.
 */

public enum CityErrorInfoEnum implements ErrorInfoInterface {

    PARAMS_NO_COMPLETE("000001","params no complete"),
    CITY_EXIT("000002","city exit");

    private String code;

    private String message;

    CityErrorInfoEnum(String code,String message){
        this.code = code;
        this.message = message;
    }

    @Override
    public String getCode() {
        return this.code;
    }

    @Override
    public String getMessage() {
        return this.message;
    }
}
